package com.tj.collection.controller.chatquality.response;

import com.kly.user.dto.UserInfoDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import java.util.List;

@ApiModel(value = "userProfileRsp", description = "Profile 信息")
@Data
@Builder
public class UserProfileRsp {
    @ApiModelProperty("用户码")
    private String userCode;
    @ApiModelProperty("用户昵称")
    private String nickName;
    @ApiModelProperty("性向：1男、2女、3-未知")
    private Integer lookingFor;
    @ApiModelProperty("性别：1男、2女、3-未知")
    private Integer gender;
    @ApiModelProperty("头像地址")
    private String avatarUrl;
    @ApiModelProperty("用户类型：2、3表示model, 4-用户")
    private Integer userType;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("aboutMe")
    private String aboutme;
    @ApiModelProperty("兴趣爱号")
    private List<String> interests;
    @ApiModelProperty("社交目的")
    public String socialConnections;

    public static UserProfileRsp toVo(UserProfileVO userInfoDto) {
        return UserProfileRsp.builder().userCode(userInfoDto.getUserCode()).nickName(userInfoDto.getNickName()).lookingFor(userInfoDto.getLookingFor())
                .gender(userInfoDto.getGender()).avatarUrl(userInfoDto.getAvatarUrl()).userType(userInfoDto.getUserType()).age(userInfoDto.getAge())
                .aboutme(userInfoDto.getAboutMe()).interests(userInfoDto.getInterests()).socialConnections(userInfoDto.getSocialConnections()).build();
    }


}
